<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>订单列表-{$tpshop_config['shop_info_store_title']}</title>
    <meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
    <!-- <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css"> -->
    <link rel="stylesheet" href="__STATIC__/css/page.css" type="text/css">
    <script src="__STATIC__/js/jquery-1.10.2.min.js"></script>
    <script src="__STATIC__/js/slider.js"></script>

</head>

<body>
<!--------头部开始-------------->
<include file="Public/header" />
<!--------头部结束-------------->

<div class="layout ov-hi">
    <div class="breadcrumb-area">    
	    <foreach name="navigate_user" key="k" item="v">
	        <if condition="$k neq '首页'"> > </if>  
            <a href="{$v}">{$k}</a> 
        </foreach>
    </div>
</div>
<div class="layout pa-to-10 fo-fa-ar">
    <!--菜单-->
    <include file="User/menu" />
    <!--菜单-->
    <div class="fr wi872">
        <div class="he50 wddd">
            <div class="fl ddd-h2">
                <h2><span>我的钱包</span></h2>
            </div>
        </div>
        <div class="aboutmoney mywallets" style="display:black">
            <div class="usermoney">
                <div class="usertop">
                    <h2>账户概况</h2>
                    <div class="usercontent">
                        <ul class="account-balance">
                            <li>
                                <div class="balance"><p>账户余额</p></div>
                                <div class="account"><h3>￥0.00</h3></div>
                                <div class="topup">
                                    <span class="tuchong"><a  onclick="mywalletstopup()">充值</a></span>
                                    <span>|</span>
                                    <span><a href="http://www.tpshop.com/index.php/Home/User/withdrawals.html">提现</a></span>
                                </div>
                            </li>
                            <li>
                                <div class="balance"><p>积分</p></div>
                                <div class="account"><h3>91</h3></div>
                                <div class="topup"><span>100积分=1元</span></div>
                            </li>
                        </ul>
                    </div>
                    <div class="userc">
                        <ul>
                            <li><span>我的账户</span></li>
                            <li><span>我的积分</span></li>
                        </ul>
                    </div>
                </div>
                <div class="userdown">
                    <div class="userdown-top">
                        <ul>
                            <li class="alllist">全部</li>
                            <li>充值记录</li>
                            <li>消费记录</li>
                        </ul>
                    </div>
                    <hr style="height: 1px; background: #dedede; border: none; margin-top: -2px;" />
                    <div class="userdown-down">
                        <div class="ttmt">
                            <ul>
                                <li>时间</li>
                                <li>类型</li>
                                <li>金额</li>
                                <li>备注</li>
                            </ul>
                        </div>
                        <div class="ttmt-list">
                            <ul>
                                <li>2016-08-18 13:46:59</li>
                                <li>消费</li>
                                <li>-￥1.00</li>
                                <li>云购商品</li>
                            </ul>
                        </div>
                        <div class="ttmt-list">
                            <ul>
                                <li>2016-08-18 13:46:59</li>
                                <li>消费</li>
                                <li>-￥1.00</li>
                                <li>云购商品</li>
                            </ul>
                        </div>
                        <div class="ttmt-list">
                            <ul>
                                <li>2016-08-18 13:46:59</li>
                                <li>消费</li>
                                <li>-￥1.00</li>
                                <li>云购商品</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="aboutmoney addmon" style="display:none">
            <div class="usermoney topup-money">
                <div class="userdown-top network-topup">
                    <ul>
                        <li class="alllist" style="margin-left: -1px">网银充值</li>
                    </ul>
                    <p onClick="mywalletsa();">返回我的钱包</p>
                </div>
                <hr style="height: 1px; background: #dedede; border: none; margin-top: -2px;" />
                <div class="choicetu">
                    <p>选择充值金额：</p>
                    <div class="monettu">
                        <div class="fop-main">
                            <div class="m-tagbox m-multi-tag">
                                <input type="hidden" name="" value="￥50.00">
                                <a href="javascript:void(0)" class="tag-item">￥50.00<i class="t-check tptig"></i></a>
                                <input type="hidden" name="" value="￥100.00">
                                <a href="javascript:void(0)" class="tag-item">￥100.00<i class="t-check"></i></a>
                                <input type="hidden" name="" value="￥200.00">
                                <a href="javascript:void(0)" class="tag-item">￥200.00<i class="t-check"></i></a>
                                <input type="hidden" name="" value="￥500.00">
                                <a href="javascript:void(0)" class="tag-item">￥500.00<i class="t-check"></i></a>
                                <div class="tag-define" data_id="tag_157">
                                    <span class="define-label" style="display: block;"><i class="i-pen"></i><em>输入金额</em></span>
                                    <input type="text" class="define-input" name="account" style="display: none;">
                                </div>
                            </div>
                        </div>
                        <div class="fop-choice">
                            <form action="{:U('Home/Payment/getCode')}" method="post" name="cart4_form" id="cart4_form">
                                <div class="orde-sjyy">
                                    <div class="bsjy-g">
                                        <dl>
                                            <dd>
                                                <div class="order-payment-area">
                                                    <div class="dsfzfpte">
                                                        <b>选择支付方式</b>                               
                                                    </div>
                                                    <div class="po-re dsfzf-ee">
                                                        <ul>
                                                        <li>
                                                                <div class="payment-area">
                                                                    <input type="radio" id="input-ALIPAY-1" value="pay_code=alipay" class="radio vam" name="pay_radio">
                                                                    <label for="">
                                                                        <img src="/plugins/payment/alipay/logo.jpg" width="120" height="40" onClick="change_pay(this);">
                                                                    </label>
                                                                </div>
                                                            </li>
                                                            <li>
                                                                <div class="payment-area">
                                                                    <input type="radio" id="input-ALIPAY-1" value="pay_code=weixin" class="radio vam" name="pay_radio">
                                                                    <label for="">
                                                                        <img src="/plugins/payment/weixin/logo.jpg" width="120" height="40" onClick="change_pay(this);">
                                                                    </label>
                                                                </div>
                                                            </li><li>
                                                                <div class="payment-area">
                                                                    <input type="radio" id="input-ALIPAY-1" value="pay_code=unionpay" class="radio vam" name="pay_radio">
                                                                    <label for="">
                                                                        <img src="/plugins/payment/unionpay/logo.jpg" width="120" height="40" onClick="change_pay(this);">
                                                                    </label>
                                                                </div>
                                                            </li><li>
                                                                <div class="payment-area">
                                                                    <input type="radio" id="input-ALIPAY-1" value="pay_code=tenpay" class="radio vam" name="pay_radio">
                                                                    <label for="">
                                                                        <img src="/plugins/payment/tenpay/logo.jpg" width="120" height="40" onClick="change_pay(this);">
                                                                    </label>
                                                                </div>
                                                            </li>                                                                    
                                                        </ul>
                                                    </div>
                                                </div>  
                                                
                                            <!--第三方网银支付 start-->
                                              <div class="order-payment-area">
                                                    <div class="dsfzfpte">
                                                            <b>支付宝支付</b>
                                                            <em>网银支付</em>
                                                        </div>
                                                    <div class="po-re dsfzf-ee">
                                                            <ul>
                                                              <li>
                                                                    <div class="payment-area">
                                                                        <input type="radio" name="pay_radio" class="radio vam" value="pay_code=alipay&amp;bank_code=CMB-DEBIT" id="input-ALIPAY-1">
                                                                        <label for="">
                                                                        <img src="/Template/pc/default/Static/images/images-out/to_cmb.jpg" width="120" height="40" onClick="change_pay(this);">
                                                                        </label>
                                                                    </div>
                                                                </li><li>
                                                                    <div class="payment-area">
                                                                        <input type="radio" name="pay_radio" class="radio vam" value="pay_code=alipay&amp;bank_code=ICBC-DEBIT" id="input-ALIPAY-1">
                                                                        <label for="">
                                                                        <img src="/Template/pc/default/Static/images/images-out/to_icbc.jpg" width="120" height="40" onClick="change_pay(this);">
                                                                        </label>
                                                                    </div>
                                                                </li><li>
                                                                    <div class="payment-area">
                                                                        <input type="radio" name="pay_radio" class="radio vam" value="pay_code=alipay&amp;bank_code=COMM-DEBIT" id="input-ALIPAY-1">
                                                                        <label for="">
                                                                        <img src="/Template/pc/default/Static/images/images-out/COMM_OUT.gif" width="120" height="40" onClick="change_pay(this);">
                                                                        </label>
                                                                    </div>
                                                                </li><li>
                                                                    <div class="payment-area">
                                                                        <input type="radio" name="pay_radio" class="radio vam" value="pay_code=alipay&amp;bank_code=CCB-DEBIT" id="input-ALIPAY-1">
                                                                        <label for="">
                                                                        <img src="/Template/pc/default/Static/images/images-out/CCB_OUT.gif" width="120" height="40" onClick="change_pay(this);">
                                                                        </label>
                                                                    </div>
                                                                </li><li>
                                                                    <div class="payment-area">
                                                                        <input type="radio" name="pay_radio" class="radio vam" value="pay_code=alipay&amp;bank_code=CMBC" id="input-ALIPAY-1">
                                                                        <label for="">
                                                                        <img src="/Template/pc/default/Static/images/images-out/CMBC_OUT.gif" width="120" height="40" onClick="change_pay(this);">
                                                                        </label>
                                                                    </div>
                                                                </li><li>
                                                                    <div class="payment-area">
                                                                        <input type="radio" name="pay_radio" class="radio vam" value="pay_code=alipay&amp;bank_code=BOC-DEBIT" id="input-ALIPAY-1">
                                                                        <label for="">
                                                                        <img src="/Template/pc/default/Static/images/images-out/BOC_OUT.gif" width="120" height="40" onClick="change_pay(this);">
                                                                        </label>
                                                                    </div>
                                                                </li><li>
                                                                    <div class="payment-area">
                                                                        <input type="radio" name="pay_radio" class="radio vam" value="pay_code=alipay&amp;bank_code=ABC" id="input-ALIPAY-1">
                                                                        <label for="">
                                                                        <img src="/Template/pc/default/Static/images/images-out/ABC_OUT.gif" width="120" height="40" onClick="change_pay(this);">
                                                                        </label>
                                                                    </div>
                                                                </li><li>
                                                                    <div class="payment-area">
                                                                        <input type="radio" name="pay_radio" class="radio vam" value="pay_code=alipay&amp;bank_code=SHBANK" id="input-ALIPAY-1">
                                                                        <label for="">
                                                                        <img src="/Template/pc/default/Static/images/images-out/to_bos.jpg" width="120" height="40" onClick="change_pay(this);">
                                                                        </label>
                                                                    </div>
                                                                </li>                                                           
                                                            </ul>
                                                    </div> 
                                                </div>                   
                                            <!--第三方网银支付 end -->                             
                                            </dd>
                                        </dl>
                                        <div class="order-payment-action-area">                    
                                            <a class="button-style-5 button-confirm-payment" href="javascript:void(0);" onClick="$('#cart4_form').submit();">确认支付方式</a>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>    
            </div>
        </div>
    </div>
</div>
<div class="he80"></div>
<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->
</body>
<script>
    $(function () {
         $(".userdown-top ul li").click(function () {
            $(this).addClass('alllist').siblings().removeClass('alllist');
         });
    });
    
    function mywalletsa() {
            $('.mywallets').show();
            $('.addmon').hide();
    };
    function mywalletstopup() {
             $('.addmon').show();
             $('.mywallets').hide();
    };

    $(document).ready(function() {
        $(document).on('click','.tag-item',function(){
            $(this).find('.t-check').addClass('tptig').parent().siblings().find('.t-check').removeClass('tptig')
        });
        $('.tag-define').click(function(){
            var goods_id = $(this).attr('data_id').substr(4);
            $(this).find('.define-label').hide();
            $(this).find('.define-input').show().focus();
            $(this).find('.define-input').blur(function(){
                var ce = $(this).val();
                ce = ce.replace(/\D|^0/g,'')
                           
                $(this).parent('.tag-define').siblings('.tag-item').each(function(){
                    var a_text = $(this).text();
                    if(ce == a_text && ce != ''){
                        alert('已有该标签!');
                        ce = '';
                        $('.define-input').val('');
                    }
                });
                if(ce == ''){
                    $(this).prev('.define-label').show();
                    $(this).hide();
                }else{
                    //remark[{$goods_list.goods_id}][rank]
                    $(this).parent('.tag-define').prev('.tag-item').after('<input type="hidden" name="remark['+goods_id+'][tag][]" value="'+ce+'"/><a href="javascript:void(0)" class="tag-item">'+'￥'+ ce +'<i class="t-check"></i></a>');
                    $(this).prev('.define-label').show();
                    $(this).hide();
                    $(this).val('');
                }
            })
        });
        
    });
</script>

<script>
    $(function () {
        //高亮显示
        var active = '{$active_status}';
        if(!active)
            active = 'ALL';
        $('.wddd-li li').removeClass('wddd-red');
        $('#'+active).addClass('wddd-red');

        $("#h-s").mouseover(function () {
            $('.ec-ta-x').css('left','124px');
            $('.ec-ta-x').css('width','110px');
            $(this).addClass("cullent");
        });
        $("#h-s").mouseout(function () {
            $('.ec-ta-x').css('left','0px');
            $('.ec-ta-x').css('width','124px');
            $(this).removeClass("cullent");
        });
    });
    $(function () {
        $("#q-s").mouseover(function () {
            $('.ec-ta-x').css('left','0px');
            $(this).addClass("cullent");
        });
        $("#q-s").mouseout(function () {
            $('.ec-ta-x').css('left','0px');
        });
    });
    //取消订单
    function cancel_order(id){
        if(!confirm("确定取消订单?"))
            return false;
        location.href = "/index.php?m=Home&c=User&a=cancel_order&id="+id;
    }
</script>
</html>